<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Elderos.Controls">

    <Style TargetType="{x:Type local:HelpMasterPage}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:HelpMasterPage}">
                    <StackPanel Grid.Column="1" Margin="10,0,0,0">
                        <RichTextBox BorderThickness="0" IsReadOnly="True" HorizontalAlignment="Left" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                            <FlowDocument>
                                <Paragraph Margin="30,0,0,0" Foreground="#FF5AAFE2" FontSize="36">
                                    <Run Text="{TemplateBinding Title}"/>
                                </Paragraph>
                            </FlowDocument>
                        </RichTextBox>
                        <Separator/>
                        <ContentPresenter Grid.Row="1" Content="{TemplateBinding Content}" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:HyperlinkLabel}">
        <Setter Property="Command" Value="GoToPage"/>
        <Setter Property="CommandParameter" Value="{Binding RelativeSource={RelativeSource Self},Path=Uri}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:HyperlinkLabel}">
                    <Grid>
                        <Rectangle Fill="{TemplateBinding Background}"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
